//
//  YesNoAlert.m
//  CNR
//
//  Created by Alimjan on 15/2/11.
//  Copyright (c) 2015年 Alimjan. All rights reserved.
//

#import "YesNoAlert.h"

@implementation YesNoAlert

-(void)awakeFromNib{
    self.layer.masksToBounds = YES;
    self.layer.cornerRadius = 5;
    
}
- (IBAction)onCancelClicked:(id)sender {
    [self dismissAlert];
    
    if (_noClickedBlock != nil) {
        _noClickedBlock();
    }
}
- (IBAction)onOkClicked:(id)sender {
    [self dismissAlert];
    if (_yesClickedBlock != nil) {
        _yesClickedBlock();
    }
}

@end
